const Mock = require('mockjs')

const data = Mock.mock({
    'comments|2': [{
        id: '@increment',
        phone: '13725494967',
        name: '@name',
        content: '@paragraph(1)',
    }]
})

var obj = {
    code: 20000,
    data: {
        comments: data.comments
    }
}
console.log(obj.data.comments);
module.exports = [
    //getAllUser 
    {
        url: '/admin/getAllComment',
        type: 'get',
        response: config => {
            return {
                code: 20000,
                data: {
                    comments: data.comments
                }
            }
        }
    }
]